import 'package:flutter/material.dart';
void main()=>runApp(MyApp());

class MyApp extends StatelessWidget{
  Widget build(BuildContext context){
    return MaterialApp(
      home:Scaffold(
        appBar: AppBar(
          title: Text("data",
          textAlign: TextAlign.right,
          ),
        ),
        body: Center(child: Container(
          child: Text("测试",
          textAlign: TextAlign.center,
          style: TextStyle(
            color: Colors.white
          ),
          ),
          height: 300,
          width: 300,
          // margin: EdgeInsets.all(20),
          padding: EdgeInsets.all(10),
          // alignment: Alignment.bottomCenter,
          decoration: BoxDecoration(
            color: Colors.yellow,//容器的背景颜色
            borderRadius:BorderRadius.circular(150),
            image: DecorationImage(
              image:NetworkImage("http://g.hiphotos.baidu.com/image/pic/item/2e2eb9389b504fc2bbdd8ce9ebdde71191ef6d5f.jpg"),
              fit:BoxFit.cover
            ),
            border: Border.all(
              color: Colors.blue,
            )
          ),
        )),
      ),
    );
  }
}
